package interfaces;

import java.awt.Color;

import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JPanel;

public class MyPanel extends JPanel //class for special view of JPanel
{
	public MyPanel()
	{
		super();	 
		this.setBackground(Color.white);
		this.setLayout(null);
	}
	public void paintBackGround(String filename,int w,int h)
	{
		JLabel screenLabel=new JLabel();
		screenLabel.setIcon(new ImageIcon(filename));
		screenLabel.setBounds(0,-18,w,h);
		screenLabel.setOpaque(true);
		this.add(screenLabel);	 
	}
}
